# 王磊的作业
#1
cheng=['北京','上海','广东']
#2
cheng.insert(1,'广东')
cheng.pop()
print(cheng)
#3
qian=[36710.36,35427.10,29863.23,29667.39,27665.36,27650.45,27620.38,25369.20]
sum=0
for i in qian:
    sum=sum+i
avg=sum/len(qian)
print('前八城市GDP总和为：',sum,'，平均GDP为：',avg)